Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCM 3993 | Feat | Add GCP marketplace terms and conditions for marketplace GCP clusters #566

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

tirthct
Copy link
Contributor

@tirthct tirthct commented Oct 9, 2023

Changed

  • Added terms and conditions flag for GCP
  • Added check to confirm the flag is set to true for both interactive and non-interactive mode

Tested

  • Interactive/Non-interactive mode should create clusters only after the flag is set to true

@@ -533,6 +546,14 @@ func preRun(cmd *cobra.Command, argv []string) error {
if isGcpMarketplace {
fmt.Println("setting ccs to 'true'")
args.ccs.Enabled = true
fmt.Println("Review and accept Google Terms and Agreements on", gcpTermsAgreementsHyperlink)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should it be Terms and Conditions instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines 531 to 532
fmt.Println("setting provider to", c.ProviderGCP)
fmt.Println("setting ccs to 'true'")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this change the behaviour: why do we only show the message/override the ccs and cloud provider attributes in the interactive mode?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added the prompt messages for non-interactive mode as well

@cristianoveiga
Copy link
Contributor

LGTM

@gdbranco gdbranco merged commit 4818e93 into openshift-online:main Oct 9, 2023
4 checks passed
@tirthct tirthct deleted the ocm-3993 branch October 9, 2023 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants